2014-12-09 - 10735 - Spec - New Era Japan- Automation of ZCOD header pricing condition - (Dan B by 2015-03-06) #JapanSD #JapanABAP #abapwaitingspec

SPECIFICATIONS

10735-Spec-Automation of ZCOD Header pricing condition

Purpose


Automation of ZCOD Header pricing condition in the sales document with certain value.

Admin Info


Purpose
Automation of ZCOD Header pricing condition in the sales document with certain value.
Requested By
Daniel Brennan
Spec Created By
Deepak Yasam
Spec Created Date
12/09/2014
Spec QA by
Deepak Yasam
Objects
V_T685A
MV45AFZZ
Document Status
WIP


Estimates



Sl.No
Activity
Estimation in Hours
1
Research
00
2
Documentation
04
3
Development/ Config
40
4
Unit test in DEV
10
5
Unit test in QUA
10
6
Other activity


TOTAL
64

References


Prior Tickets

[Provide links of prior associated Spec / Break Fix BOSS document(s)]

None

Documents

[Attach any document(s) received for the requirement(s)]

None


Spec Changes


[List the changes made to program after the approval of the original requirement along with the Date on which the change request was received and the name of the initiator]

Sl.
Change Details
Requested By
Requested On
Notes if any

























Functional Requirement


Purpose/WHY:

[Explain the purpose of the project and the reason why this requirement has come]
Default value of ZCOD should be passed to the sales order automatically based on the payment terms in the sales order ie., ZOR

In Scope:

[List the activities to be included in scope]
The ZCOD would be dispalyed with certain value if the payment terms is ZCOD in the sales order ie., ZOR

Out of Scope:

[Out of scope activities]
For payment terms other than ZCODand document types other than ZOR , the ZCOD pricing condition won't be displayed.

Solution Summary


[Discuss this section with Requester and get approval prior to beginning work]

1.For the automation of ZCOD header condition for ZOR document type with payment terms ZCOD, a variable needs to be maintained in TVARVC table with the range of upper limit and lower limit.

Upperlimit - will specify the document type
Lower limit - will represent the condition value.

2.The user exit MV45AFZZ needs to enhanced with the logic to display the ZCOD condition only if the payment terms in teh sales document is ZCOD.


Test Plan

[List test scenarios/cases to be executed here]
Test ID
Test Scenario
Expected Result
SD001
1.Create a ZOR sales order with payment terms ZCOD and multiple items.
2. Create corresponding delivery and invoice.
1.The ZCOD default condition value 500 YEN at header should be displayed and split among all the items in the Sales order.
2.The ZCOD value should pass on to the invoice.
SD002
1.Create a ZOR sales order with payment terms ZCOD .
2. Create multiple deliveries and corresponding invoices.
1.The ZCOD default condition value 500 YEN at header should be displayed and split among all the items in the Sales order.
2.The ZCOD value should pass on to the invoices based on the relevant items in the document.
SD003
1.Create a ZOR sales order with payment terms ZCOD and multiple items. Reject one of the item .
2. Create corresponding delivery and invoice.
1.The ZCOD default condition value 500 YEN at header should be displayed and the rejected item should show zero for ZCOD condition type.
2.The unrejected items should have the split value of ZCOD condition type.
3.The ZCOD value should pass on to the invoices based on the relevant items in the document.
SD004
1.Create a ZOR sales order with payment terms ZCOD and multiple items.
2.Delete one of the item and save the order .
3.Readd another item in the sales order. 4.Create corresponding delivery and invoice.
1.The ZCOD default condition value 500 YEN at header should be displayed and split among all the items in the Sales order. 2.The ZCOD value should pass on to the invoice.
SD005
1.Create a ZOR sales order with payment terms other than ZCOD with multiple items.
2. Create corresponding delivery and invoice.
1.The ZCOD pricing condition shouldn't be displayed after the sales order is saved.
2.The ZCOD value shouldn't be shown in the invoice.
SD006
1.Create a ZFD sales order with payment terms ZCOD and multiple items.
2. Create corresponding delivery and invoice.
1.The ZCOD pricing condition shouldn't be displayed after the sales order is saved.
2.The ZCOD value shouldn't be shown in the invoice.
SD007
1.Create a ZPTO sales order with payment terms ZCOD and multiple items.
2. Create corresponding delivery and invoice.
1.The ZCOD pricing condition shouldn't be displayed after the sales order is saved.
2.The ZCOD value shouldn't be shown in the invoice.
SD008
1.Create a ZU3P sales order with payment terms ZCOD and multiple items.
2. Create corresponding delivery and invoice.
1.The ZCOD pricing condition shouldn't be displayed after the sales order is saved.
2.The ZCOD value shouldn't be shown in the invoice.
SD009
1.Create a ZJRU sales order with payment terms ZCOD and multiple items.
2. Create corresponding delivery and invoice.
1.The ZCOD pricing condition shouldn't be displayed after the sales order is saved.
2.The ZCOD value shouldn't be shown in the invoice.
SD010
1.Create a ZOR sales order with payment terms ZCOD .
2.Change the item category TAN to TAB.
3. Create Delivery and corresponding invoice.
1.The ZCOD default condition value 500 YEN at header should be displayed and split among all the items in the Sales order. 2.The ZCOD value should pass on to the invoices based on the relevant items in the document.
SD011
1.Create a ZOR sales order with payment terms ZCOD .
2.Change the plant from 0610 to 0620. 3. Create Delivery and corresponding invoice.
1.The ZCOD default condition value 500 YEN at header should be displayed and split among all the items in the Sales order. 2.The ZCOD value should pass on to the invoices based on the relevant items in the document.
SD012
1.Create a ZOR sales order with payment terms ZCOD and multiple items through EDI.
2. Create corresponding delivery and invoice.
1.The ZCOD default condition value 500 YEN at header should be displayed and split among all the items in the Sales order. 2.The ZCOD value should pass on to the invoice.
SD013
1.Create a ZOR sales order with payment terms ZCOD and multiple items .Item 10 and 20 with Z2 availability check ,item 30 with Z3 A.C
2. Create corresponding delivery and invoice.
1.The ZCOD default condition value 500 YEN at header should be displayed and split among item 10 and 20 .
2.Item 30 should be rejected with J0 and the ZCOD value should be zero.
3.The ZCOD value should pass on to the invoice.


Solution Details


[Provide complete technical details for configuration or programming here]

Configuration:
1.The access sequence in the ZCOD condition type is removed so as to make it header pricing condition.
1.The variable ZCOD_JAPAN_PRICE is created in TVARVC table with the range of upperlimit and lower limit.
2.The sales document type ZOR is added in the upper limit and the default value of 500 YEN is added in the lower limit.

Technical:
Userexit MV45AFZZ is enhanced:
This code is applicable only when the Terms is ZCOD.
1.To read the payment terms from TVARVC table based on the sales document type for the sales order Terms ZCOD.
2.Adjusted Payment terms to zero for the rejected items to make the net value of the item as zero.
3.Deleted the zero amount payment lines for the condition type ZCOD

Issues


[List Issues / Bugs identified in configuration or development]